//
//  myUserModel.m
//  JiFengDaRen
//
//  Created by guest on 16/1/27.
//  Copyright © 2016年 SH_iOS. All rights reserved.
//

#import "UserModel.h"

@implementation UserModel
static  UserModel *model = nil;
+ (instancetype)shareManager{
    
    @synchronized(self){
        if (!model) {
            model = [[UserModel alloc]init];
        }
        
    }
    return model;
    
}
- (instancetype)init{
    
    if (self = [super init]) {
        
    }
    return self;
}

- (void)setMyUserModel:(UserModel *)myUserModel{
     self.credits = myUserModel.credits;//联商红包
     self.pay_balance  = myUserModel.pay_balance;//消费余额
     self.balance = myUserModel.balance;//我的粮仓
     self._id = myUserModel._id;//用户ID
     self.phone = myUserModel.phone;
     self.avatar = myUserModel.avatar;
     self.username = myUserModel.username;
     self.nickname = myUserModel.nickname;
     self.email = myUserModel.email;
     self.level = myUserModel.level;
     self.is_hmuser  = myUserModel.is_hmuser;
     self.is_lucky_user = myUserModel.is_lucky_user;
     self.user_spread_link = myUserModel.user_spread_link;
     self.is_agent = myUserModel.is_agent;
     self.inviter_count = myUserModel.inviter_count;
     self.has_pay_password = myUserModel.has_pay_password;
     self.member_id = myUserModel.member_id;
     self.has_certification = myUserModel.has_certification;
    self.user_grade = myUserModel.user_grade;
}

@end
